Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Notes and Domino Application Development wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

Community articleXpages - changing the color of a single cell in a view Panel based on a field value
Added by ~Kim Froresatherings on July 18, 2010 | Version 1
expanded Abstract
collapsed Abstract
In Lotus Notes, it is possible to add view columns that "Use value as color". This can be used to change the background color and/or text color of the entire row or just a specific cell. There are already articles on the Wiki that cover setting alternating row colors or changing the color of the entire row. This article focuses on how to change the color of just one cell depending on the value of a document.
Tags: View Column color, Xpages view column color, Xpages
The demonstration database contains products, which have "units in stock" and a "reorder level". When the standard Products view is displayed in Lotus Notes, a hidden column with "Use value as color" has been placed just before the "Units in Stock" column with the formula:
 
@If(UnitsInStock<=ReorderLevel;255:0:0:-1:-1:-1;-1:-1:-1:-1:-1:-1) 
 
This has the effect of changing the background color of the units in stock to red if the value is at or below the reorder level - time to buy some more!! 
 
 
 
expanded Attachments (0)
collapsed Attachments (0)
expanded Versions (5)
collapsed Versions (5)
Version Comparison     
VersionDateChanged by              Summary of changes
5Aug 9, 2010, 12:56:39 PM~Andy Elresaplopettu  
4Jul 18, 2010, 12:40:56 PM~Kim Froresatherings  
3Jul 18, 2010, 12:33:30 PM~Kim Froresatherings  
2Jul 18, 2010, 12:20:31 PM~Kim Froresatherings  
This version (1)Jul 18, 2010, 11:54:01 AM~Kim Froresatherings  
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL
  • Privacy
  • Accessibility